package tankgame3;

public class SuperMan extends Tank {
    Shot shot=null;

    public SuperMan(int x, int y) {
        super(x, y);
    }

    public void shotEnemyTank(){
        switch (getDirect()){//这也行？？？？？？？？？？
            case 0://up
                shot=new Shot(getX()+10,getY(),0);
                break;
            case 1://right
                shot=new Shot(getX()+60,getY()+20,1);
                break;
            case 2://down
                shot=new Shot(getX()+20,getY()+60,2);
                break;
            case 3://left
                shot=new Shot(getX(),getY()+20,3);
                break;
        }//switch

        new Thread(shot).start();
    }

}
